package ru.cod.rs.objects;

import ru.cod.rs.types.Speed;

public class MoveObject extends SideObject {

	public MoveObject() {
		super();
	}

	public MoveObject(int x, int y) {
		super(x, y);
	}
	// ////////////////////////////////////
	private Speed speed;
	// ////////////////////////////////////
	public void update() {
		x+=(speed.getValue()*speed.getDirection().value());
	}
	//	////////////////////////////////////////////////
	
	/**
	 * @return the speed
	 */
	public Speed getSpeed() {
		return speed;
	}

	/**
	 * @param speed the speed to set
	 */
	public void setSpeed(Speed speed) {
		this.speed = speed;
	}
	
}
